CrossToolComponent
CrossToolComponent API
- CrossToolComponent.registerDefaultDrawerTypes
- Returns
- void
CrossToolComponent.registerDefaultDrawerTypes(): void
Registers default drawer types for the chart.
- CrossToolComponent.setVisible
- Parameters
- visible: boolean
- Returns
- void
CrossToolComponent.setVisible(visible: boolean): void
Sets the cross tool visibility.
- CrossToolComponent.setType
- Parameters
- type: string
- Returns
- void
CrossToolComponent.setType(type: string): void
Sets the crosstool type. - cross-and-labels - both the crosshair and X/Y labels - only-labels - only the X/Y label - none
- CrossToolComponent.observeCrossToolChanged
- Returns
- BehaviorSubject<CrossToolHover>
CrossToolComponent.observeCrossToolChanged(): BehaviorSubject<CrossToolHover>
Returns an Observable that emits the current hover subject.
- CrossToolComponent.setMagnetTarget
- Parameters
- target: MagnetTarget
- Returns
- void
CrossToolComponent.setMagnetTarget(target: MagnetTarget): void
Sets magnet target for cross tool. Supported only for 'cross-and-labels' type. Default magnet target is none.
- CrossToolComponent.registerCrossToolTypeDrawer
- Parameters
- drawerName: string
- - an unique drawer type name
- drawerImpl: CrossToolTypeDrawer
- - CrossToolTypeDrawer object
- Returns
- void
CrossToolComponent.registerCrossToolTypeDrawer(drawerName: string, drawerImpl: CrossToolTypeDrawer): void
Adds a new drawer type for cross tool, so you can add your own implementation of cross tool (or override existing)